﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public struct Color
{
    public double r;
    public double g;
    public double b;
    public double a;
}

public struct Vector3
{
    public double x;
    public double y;
    public double z;

    public Vector3(double x, double y)
    {
        this.x = x;
        this.y = y;
        this.z = 0;
    }
    public Vector3(double x, double y, double z)
    {
        this.x = x;
        this.y = y;
        this.z = z;
    }
}

public class UserData
{
    public string username;
    public int index;
    public int hp;
    public bool isReady;
    public Color color;
    public Vector3 pos;
}


public class HitDat
{
    public string originUsername;//子弹发射方
    public string targetUsername;//子弹的被打中方
    public int hp;//掉血后的真实血量
}


//用户注册的实体类
public class User
{
    public int id;
    public string username;
    public string nickname;
    public string password;
}

public class Error
{
    public int code;
    public Error(int value)
    {
        code = value;
    }
}